package com.atguigu.yygh.user.service;


import com.atguigu.yygh.model.user.UserInfo;
import com.atguigu.yygh.vo.user.LoginVo;
import com.atguigu.yygh.vo.user.UserAuthVo;
import com.atguigu.yygh.vo.user.UserInfoQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author atguigu
 * @since 2021-09-08
 */
public interface UserInfoService extends IService<UserInfo> {
    //登录接口
    Map<String, Object> loginUser(LoginVo loginVo);

    UserInfo findUserByOpenid(String openid);

    //用户认证
    void userAuth(Long userId, UserAuthVo userAuthVo);
    //用户列表 (条件查询带分页)
    IPage<UserInfo> selectPage(Page<UserInfo> pageParam, UserInfoQueryVo userInfoQueryVo);

    //用户锁定 这里的userId实质是user_info表的id
    void lock(Long userId, Integer status);

    //用户详情
    Map<String, Object> showUserDetail(Long userId);
    //用户审批
    void approval(Long userId, Integer authStatus);
}
